package com.zhangzhan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhangzhan.domain.entity.Menu;
import com.zhangzhan.domain.vo.MenuTreeSelectVO;
import com.zhangzhan.domain.vo.MenuVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 菜单权限表(Menu)表数据库访问层
 *
 * @author makejava
 * @since 2022-12-05 15:05:29
 */
public interface MenuMapper extends BaseMapper<Menu> {

    List<String> selectPermsByUserId(@Param("id") Long id);

    List<MenuVO> selectAdminMenu();

    List<MenuVO> selectMenuById(@Param("userId") Long userId);

    List<MenuTreeSelectVO> treeselect();

    List<MenuTreeSelectVO> roleMenuTreeselect();

    List<Long> checkedKeys(@Param("id") Long id);
}

